package com.fyzk.activity.forum;

import java.util.List;

import http.DataUtil.text.TextUtil;

/**
 * Created by fanxs11 on 17/5/13.
 */

public class TopicDetailBean {


    /**
     * answer_id : 26
     * question_id : 42
     * answer_content : 回复1
     * add_time : 1494815993
     * against_count : 0
     * agree_count : 0
     * uid : 7
     * comment_count : 2
     * uninterested_count : 0
     * thanks_count : 0
     * category_id : 1
     * has_attach : 0
     * ip : 1928683476
     * force_fold : 0
     * anonymous : 0
     * publish_source :
     * user_info : {"uid":7,"user_name":"miao","salt":"czrj","avatar_file":"","sex":3,"reg_time":1494040974,"reg_ip":2067391230,"last_login":1494057088,"last_ip":1874968971,"online_time":289245,"last_active":1494916723,"notification_unread":7,"fans_count":0,"friend_count":1,"invite_count":0,"article_count":0,"question_count":16,"answer_count":1,"topic_focus_count":4,"invitation_available":5,"group_id":4,"reputation_group":5,"forbidden":0,"valid_email":1,"is_first_login":0,"agree_count":0,"thanks_count":0,"views_count":11,"reputation":0,"reputation_update_time":1494913388,"integral":1690,"draft_count":0,"common_email":"","url_token":"miao","url_token_update":0,"verified":"","default_timezone":"","id":7,"introduction":"","signature":"","qq":0,"homepage":""}
     * user_rated_thanks :
     * user_rated_uninterested :
     * agree_users :
     * agree_status : 0
     * answer_comment : [{"id":12,"answer_id":26,"uid":1,"message":"法案的","time":1494916682,"user_name":"admin","url_token":"admin"},{"id":13,"answer_id":26,"uid":1,"message":"@admin:发发发","time":1494916705,"user_name":"admin","url_token":"admin"}]
     */

    private int answer_id;
    private int question_id;
    private String answer_content;
    private long add_time;
    private int against_count;
    private int agree_count;
    private int uid;
    private int comment_count;
    private int uninterested_count;
    private int thanks_count;
    private int category_id;
    private int force_fold;
    private int anonymous;
    private String publish_source;
    /**
     * uid : 7
     * user_name : miao
     * salt : czrj
     * avatar_file :
     * sex : 3
     * reg_time : 1494040974
     * reg_ip : 2067391230
     * last_login : 1494057088
     * last_ip : 1874968971
     * online_time : 289245
     * last_active : 1494916723
     * notification_unread : 7
     * fans_count : 0
     * friend_count : 1
     * invite_count : 0
     * article_count : 0
     * question_count : 16
     * answer_count : 1
     * topic_focus_count : 4
     * invitation_available : 5
     * group_id : 4
     * reputation_group : 5
     * forbidden : 0
     * valid_email : 1
     * is_first_login : 0
     * agree_count : 0
     * thanks_count : 0
     * views_count : 11
     * reputation : 0
     * reputation_update_time : 1494913388
     * integral : 1690
     * draft_count : 0
     * common_email :
     * url_token : miao
     * url_token_update : 0
     * verified :
     * default_timezone :
     * id : 7
     * introduction :
     * signature :
     * qq : 0
     * homepage :
     */

    private UserInfoBean user_info;
    private String user_rated_thanks;
    private String user_rated_uninterested;
    private String agree_users;
    private String agree_status;
    /**
     * id : 12
     * answer_id : 26
     * uid : 1
     * message : 法案的
     * time : 1494916682
     * user_name : admin
     * url_token : admin
     */

    private List<AnswerCommentBean> answer_comment;

    public int getAnswer_id() {
        return answer_id;
    }

    public void setAnswer_id(int answer_id) {
        this.answer_id = answer_id;
    }

    public int getQuestion_id() {
        return question_id;
    }

    public void setQuestion_id(int question_id) {
        this.question_id = question_id;
    }

    public String getAnswer_content() {
        return answer_content;
    }

    public void setAnswer_content(String answer_content) {
        this.answer_content = answer_content;
    }

    public long getAdd_time() {
        return add_time;
    }

    public void setAdd_time(long add_time) {
        this.add_time = add_time;
    }

    public int getAgainst_count() {
        return against_count;
    }

    public void setAgainst_count(int against_count) {
        this.against_count = against_count;
    }

    public int getAgree_count() {
        return agree_count;
    }

    public void setAgree_count(int agree_count) {
        this.agree_count = agree_count;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public int getComment_count() {
        return comment_count;
    }

    public void setComment_count(int comment_count) {
        this.comment_count = comment_count;
    }

    public int getUninterested_count() {
        return uninterested_count;
    }

    public void setUninterested_count(int uninterested_count) {
        this.uninterested_count = uninterested_count;
    }

    public int getThanks_count() {
        return thanks_count;
    }

    public void setThanks_count(int thanks_count) {
        this.thanks_count = thanks_count;
    }

    public int getCategory_id() {
        return category_id;
    }

    public void setCategory_id(int category_id) {
        this.category_id = category_id;
    }

    public int getForce_fold() {
        return force_fold;
    }

    public void setForce_fold(int force_fold) {
        this.force_fold = force_fold;
    }

    public int getAnonymous() {
        return anonymous;
    }

    public void setAnonymous(int anonymous) {
        this.anonymous = anonymous;
    }

    public String getPublish_source() {
        return publish_source;
    }

    public void setPublish_source(String publish_source) {
        this.publish_source = publish_source;
    }

    public UserInfoBean getUser_info() {
        return user_info;
    }

    public void setUser_info(UserInfoBean user_info) {
        this.user_info = user_info;
    }

    public String getUser_rated_thanks() {
        return user_rated_thanks;
    }

    public void setUser_rated_thanks(String user_rated_thanks) {
        this.user_rated_thanks = user_rated_thanks;
    }

    public String getUser_rated_uninterested() {
        return user_rated_uninterested;
    }

    public void setUser_rated_uninterested(String user_rated_uninterested) {
        this.user_rated_uninterested = user_rated_uninterested;
    }

    public String getAgree_users() {
        return agree_users;
    }

    public void setAgree_users(String agree_users) {
        this.agree_users = agree_users;
    }

    public String getAgree_status() {
        return agree_status;
    }

    public void setAgree_status(String agree_status) {
        this.agree_status = agree_status;
    }

    public List<AnswerCommentBean> getAnswer_comment() {
        return answer_comment;
    }

    public void setAnswer_comment(List<AnswerCommentBean> answer_comment) {
        this.answer_comment = answer_comment;
    }

    public static class UserInfoBean {
//        private int uid;
        private String user_name;
        private String alias;
//        private String salt;
        private String avatar_file;
//        private int sex;
//        private int fans_count;
//        private int friend_count;
//        private int invite_count;
//        private int article_count;
//        private int question_count;
//        private int answer_count;
//        private int topic_focus_count;
//        private int invitation_available;
//        private int group_id;
//        private int reputation_group;
//        private int forbidden;
//        private int valid_email;
//        private int is_first_login;
//        private int agree_count;
//        private int thanks_count;
//        private int views_count;
//        private int reputation;
//        private int integral;
//        private int draft_count;
//        private String common_email;
//        private String url_token;
//        private int url_token_update;
//        private String verified;
//        private String default_timezone;
//        private int id;
//        private String introduction;
//        private String signature;
////        private int qq;
//        private String homepage;

//        public int getUid() {
//            return uid;
//        }
//
//        public void setUid(int uid) {
//            this.uid = uid;
//        }

        public String getUser_name() {
            return user_name;
        }

        public void setUser_name(String user_name) {
            this.user_name = user_name;
        }

        public String getAlias() {
            return alias;
        }

        public void setAlias(String alias) {
            this.alias = alias;
        }

//        public String getSalt() {
//            return salt;
//        }
//
//        public void setSalt(String salt) {
//            this.salt = salt;
//        }

        public String getAvatar_file() {
            return avatar_file;
        }

        public void setAvatar_file(String avatar_file) {
            this.avatar_file = avatar_file;
        }

//        public int getSex() {
//            return sex;
//        }
//
//        public void setSex(int sex) {
//            this.sex = sex;
//        }
//
//        public int getFans_count() {
//            return fans_count;
//        }
//
//        public void setFans_count(int fans_count) {
//            this.fans_count = fans_count;
//        }
//
//        public int getFriend_count() {
//            return friend_count;
//        }
//
//        public void setFriend_count(int friend_count) {
//            this.friend_count = friend_count;
//        }
//
//        public int getInvite_count() {
//            return invite_count;
//        }
//
//        public void setInvite_count(int invite_count) {
//            this.invite_count = invite_count;
//        }
//
//        public int getArticle_count() {
//            return article_count;
//        }
//
//        public void setArticle_count(int article_count) {
//            this.article_count = article_count;
//        }
//
//        public int getQuestion_count() {
//            return question_count;
//        }
//
//        public void setQuestion_count(int question_count) {
//            this.question_count = question_count;
//        }
//
//        public int getAnswer_count() {
//            return answer_count;
//        }
//
//        public void setAnswer_count(int answer_count) {
//            this.answer_count = answer_count;
//        }
//
//        public int getTopic_focus_count() {
//            return topic_focus_count;
//        }
//
//        public void setTopic_focus_count(int topic_focus_count) {
//            this.topic_focus_count = topic_focus_count;
//        }
//
//        public int getInvitation_available() {
//            return invitation_available;
//        }
//
//        public void setInvitation_available(int invitation_available) {
//            this.invitation_available = invitation_available;
//        }
//
//        public int getGroup_id() {
//            return group_id;
//        }
//
//        public void setGroup_id(int group_id) {
//            this.group_id = group_id;
//        }
//
//        public int getReputation_group() {
//            return reputation_group;
//        }
//
//        public void setReputation_group(int reputation_group) {
//            this.reputation_group = reputation_group;
//        }
//
//        public int getForbidden() {
//            return forbidden;
//        }
//
//        public void setForbidden(int forbidden) {
//            this.forbidden = forbidden;
//        }
//
//        public int getValid_email() {
//            return valid_email;
//        }
//
//        public void setValid_email(int valid_email) {
//            this.valid_email = valid_email;
//        }
//
//        public int getIs_first_login() {
//            return is_first_login;
//        }
//
//        public void setIs_first_login(int is_first_login) {
//            this.is_first_login = is_first_login;
//        }
//
//        public int getAgree_count() {
//            return agree_count;
//        }
//
//        public void setAgree_count(int agree_count) {
//            this.agree_count = agree_count;
//        }
//
//        public int getThanks_count() {
//            return thanks_count;
//        }
//
//        public void setThanks_count(int thanks_count) {
//            this.thanks_count = thanks_count;
//        }
//
//        public int getViews_count() {
//            return views_count;
//        }
//
//        public void setViews_count(int views_count) {
//            this.views_count = views_count;
//        }
//
//        public int getReputation() {
//            return reputation;
//        }
//
//        public void setReputation(int reputation) {
//            this.reputation = reputation;
//        }
//
//        public int getIntegral() {
//            return integral;
//        }
//
//        public void setIntegral(int integral) {
//            this.integral = integral;
//        }
//
//        public int getDraft_count() {
//            return draft_count;
//        }
//
//        public void setDraft_count(int draft_count) {
//            this.draft_count = draft_count;
//        }
//
//        public String getCommon_email() {
//            return common_email;
//        }
//
//        public void setCommon_email(String common_email) {
//            this.common_email = common_email;
//        }
//
//        public String getUrl_token() {
//            return url_token;
//        }
//
//        public void setUrl_token(String url_token) {
//            this.url_token = url_token;
//        }
//
//        public int getUrl_token_update() {
//            return url_token_update;
//        }
//
//        public void setUrl_token_update(int url_token_update) {
//            this.url_token_update = url_token_update;
//        }
//
//        public String getVerified() {
//            return verified;
//        }
//
//        public void setVerified(String verified) {
//            this.verified = verified;
//        }
//
//        public String getDefault_timezone() {
//            return default_timezone;
//        }
//
//        public void setDefault_timezone(String default_timezone) {
//            this.default_timezone = default_timezone;
//        }
//
//        public int getId() {
//            return id;
//        }
//
//        public void setId(int id) {
//            this.id = id;
//        }
//
//        public String getIntroduction() {
//            return introduction;
//        }
//
//        public void setIntroduction(String introduction) {
//            this.introduction = introduction;
//        }
//
//        public String getSignature() {
//            return signature;
//        }
//
//        public void setSignature(String signature) {
//            this.signature = signature;
//        }
//
//        public int getQq() {
//            return qq;
//        }
//
//        public void setQq(int qq) {
//            this.qq = qq;
//        }
//
//        public String getHomepage() {
//            return homepage;
//        }
//
//        public void setHomepage(String homepage) {
//            this.homepage = homepage;
//        }
    }

    public static class AnswerCommentBean {
        private int id;
        private int answer_id;
        private int uid;
        private String message;
        private long time;
        private String user_name;
        private String url_token;
        private String alias;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getAnswer_id() {
            return answer_id;
        }

        public void setAnswer_id(int answer_id) {
            this.answer_id = answer_id;
        }

        public int getUid() {
            return uid;
        }

        public void setUid(int uid) {
            this.uid = uid;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public long getTime() {
            return time;
        }

        public void setTime(long time) {
            this.time = time;
        }

        public String getUser_name() {
            return user_name;
        }

        public void setUser_name(String user_name) {
            this.user_name = user_name;
        }

        public String getUrl_token() {
            return url_token;
        }

        public void setUrl_token(String url_token) {
            this.url_token = url_token;
        }

        public String getAlias() {
            return TextUtil.isEmpty(alias) ? user_name : alias;
        }

        public void setAlias(String alias) {
            this.alias = alias;
        }
    }
}
